package Test04;

import java.io.Serializable;

public class Teacher implements Serializable {
    private String type;
    private String name;
    private int age;
    private Phone phone;

    @Override
    public String toString() {
        return "Teacher{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", phone=" + phone +
                '}';
    }

    public Teacher(String type, String name, int age, Phone phone) {
        this.type = type;
        this.name = name;
        this.age = age;
        this.phone = phone;
    }

    public Teacher(String type, String name, int age) {
        this.type = type;
        this.name = name;
        this.age = age;
    }

    public Teacher() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Phone getPhone() {
        return phone;
    }

    public void setPhone(Phone phone) {
        this.phone = phone;
    }
}
